package com.example.controller;


import com.example.service.MyTestService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api")
public class MyTestController {

    private final MyTestService myTestService;

    public MyTestController(MyTestService myTestService) {
        this.myTestService = myTestService;
    }

/**
    * 我的测试方法
    * @author jiwd
    * @date 2021-05-18 15:05:01
    * @param 
    * @return void
    */
    public void findById(){
        myTestService.findById();
    }
/**
    * 查询
    * @author jiwd
    * @date 2021-05-18 15:06:55
    * @param 
    * @return void
    */
    public void findList(){
        myTestService.findList();
    }
/**
    * 测试方法
    * @author jiwd
    * @date 2021-05-18 15:10:19
    * @param
    * @return String
    */
    public String test(){
        return myTestService.test();
    }
/**
    * 查询用户
    * @author jiwd
    * @date 2021-05-18 15:17:43
    * @param 
    * @return String
    */
    @RequestMapping
    public String findUser(){
    
        return myTestService.findUser();
    
    }

    public String uts(){
        return myTestService.uts();
	}

}